import React from 'react';
import Header from './components/Header';
import Main from './components/Main';

import './index.css';

export default class App extends React.Component {
  state = {
    // 用户名输入框
    username: '',
    // 评论内容
    content: '',
  };

  render() {
    return (
      <div className="app">
        {/* 表单提交的时候，运行发布评论的函数 */}
        <Header></Header>
        <Main></Main>
      </div>
    );
  }
}
